From: Colin Walters Date: Thu, 3 Jun 2010 16:47:15 +0000 (-0400) Subject: [lookingGlass] Fix scrolling in errorLog X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~10006 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=35f27ae150edebd1ab7cecfd7b34c1441d524c41;p=gnome-shell.git [lookingGlass] Fix scrolling in errorLog When setting line_wrap, we need to unset the ellipsization, otherwise ClutterText won't do what we want. --- diff --git a/js/ui/lookingGlass.js b/js/ui/lookingGlass.js index 2a175fe9e..84efc7135 100644 --- a/js/ui/lookingGlass.js +++ b/js/ui/lookingGlass.js @@ -431,6 +431,11 @@ ErrorLog.prototype = { this.actor = new St.BoxLayout(); this.text = new St.Label(); this.actor.add(this.text); + // We need to override StLabel's default ellipsization when + // using line_wrap; otherwise ClutterText's layout is going + // to constrain both the width and height, which prevents + // scrolling. + this.text.clutter_text.ellipsize = Pango.EllipsizeMode.NONE; this.text.clutter_text.line_wrap = true; this.actor.connect('notify::mapped', Lang.bind(this, this._renderText)); },